/****************************************************************************
 * libwiigui Template
 * Tantric 2009
 *
 * demo.h
 ***************************************************************************/

#ifndef _LoadGame_H_
#define _LoadGame_H_

#ifdef __cplusplus
extern "C" {
#endif

typedef unsigned char		byte;
typedef unsigned short		word;
typedef unsigned int		dword;
typedef unsigned long long	qword;


struct Header
{
	dword	ID;
	word	Publisher;
	word	Version;
	byte	Audio_Stream;
	byte	Buffer_Size;
	byte	Unused[14];
	dword	Magic;					// 0x5d1c9ea3 or disc is invalid
	byte	Unused2[4];
	byte	Title[60];
	byte	Disable_Verify;			// Will fail if set
	byte	Disable_Encryption;		// Will fail if set
	byte	Padding[0x7a2];
} __attribute__((__packed__));

int LoadGame();

#ifdef __cplusplus
}
#endif
#endif
